<?php

/*
  Aurus CMS - free OOP CMS
  Copyright (C) 2010  Nestor Yanchuk

  This program is free software: you can redistribute it and/or modify
  it under the terms of the GNU General Public License as published by
  the Free Software Foundation, either version 2 of the License, or
  (at your option) any later version.

  This program is distributed in the hope that it will be useful,
  but WITHOUT ANY WARRANTY; without even the implied warranty of
  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  GNU General Public License for more details.

  You should have received a copy of the GNU General Public License
  along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */

header('Content-Type: text/html; charset=UTF-8');
define('START_TIME', microtime(true));
define('START_MEMORY', memory_get_usage());

session_start();
ob_implicit_flush();

ini_set('register_globals', 0);
ini_set('magic_quotes_runtime', 0);
ini_set('magic_quotes_sybase', 0);

define('ROOT', dirname(__file__));
define('MAINDIR', ROOT . '/engine');
define('AJAX', false);
define('IN_ADMIN', false);

include (MAINDIR . '/init.php');

if (is_dir(ROOT . '/install') && !DEV_MODE) {
    die(__('Видаліть папку <strong>/install</strong> з сервера'));
}

Controller::run();
Event::runEvent('end');
exit(0);